<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><?php echo CHtml::encode($this->pageTitle); ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/fermierul/style.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/fermierul/vertnav.css" media="all">
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/fermierul/screen.css" media="all">
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/fermierul/tabs.css" media="all">

<script type="text/javascript">
	function setMenu(elem){    
		if (jQuery(elem).next().is(":visible"))
		{        
			jQuery(elem).next().slideUp();        
			jQuery(elem).removeClass('active');    
		}else{        
			jQuery(".level2:visible").prev().removeClass('active');        
			jQuery(".level2:visible").slideUp();        
			jQuery(elem).next().slideDown();        
			jQuery(elem).addClass('active');    
		}   
	}
</script>

</head>
<body>
<div id="main_wrapper">
<div id="main_container">
  <div id="header">
    <div id="logo">
        <a href="<?php echo $this->createUrl('/site/index');?>">
            <img src="<?php echo Yii::app()->request->baseUrl; ?>/css/fermierul/images/fermierul-logo.gif" alt="" border="0"/>
        </a>
    </div>
    <div  id="language-selector" style="float:right; margin:5px;">
    <?php 
        $this->widget('application.widgets.LanguageSelector');
    ?>
</div>
    <div id="menu">
      <?php $this->widget('zii.widgets.CMenu',array(
			'items'=>array(
				array('label'=>Yii::t('site','Home'), 'url'=>array('/site/index')),
				array('label'=>Yii::t('site','News'), 'url'=>array('/post/news')),
				array('label'=>Yii::t('site','Articles'), 'url'=>array('/post/index')),
				array('label'=>Yii::t('site','Ads'), 'url'=>'#', 'linkOptions'=>array('class'=>'disabled')),
				array('label'=>Yii::t('site','Farmers'), 'url'=>'#', 'linkOptions'=>array('class'=>'disabled')),
				array('label'=>Yii::t('site','Forum'), 'url'=>'#', 'linkOptions'=>array('class'=>'disabled')),
				array('label'=>Yii::t('site','About'), 'url'=>array('/site/page', 'view'=>'about')),
				array('label'=>Yii::t('site','Contacts'), 'url'=>array('/site/contact')),
			),
		)); ?>
    </div>
  </div>
  
   
  <!--<div style="padding:10px 20px 10px 20px;">
  <?php if(isset($this->breadcrumbs)):?>
		<?php $this->widget('zii.widgets.CBreadcrumbs', array(
			'links'=>$this->breadcrumbs,
		)); ?>
	<?php endif?>
	</div>-->
  <!--end of green box-->
  <div id="main_content">
    	  <?php echo $content; ?>
    	
		
    <div style=" clear:both;"></div>
  </div>
  <!--end of main content-->
  <div id="footer">
    <div class="copyright"> Copyright &copy; <?php echo date('Y'); ?> by <a href="<?php echo $this->createUrl('/site/index');?>">Fermierul.md</a></div>
    <div class="footer_links"> <?php echo CHtml::link(Yii::t('site', 'About'), CHtml::normalizeUrl(array('/site/page', 'view'=>'about'))); ?> <?php echo CHtml::link(Yii::t('site', 'Terms and Conditions'), CHtml::normalizeUrl(array('/site/page', 'view'=>'terms')));?> <?php echo CHtml::link(Yii::t('site','Contacts'), CHtml::normalizeUrl(array('/site/contact')));?> </div>
  </div>
</div>
</div>
<!--end of main container-->

</body>
</html>
